﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

public partial class Admin_FriendLink_LinkAdd : System.Web.UI.Page
{
    protected void Page_Load(object sender, EventArgs e)
    {

    }
    protected void btnAdd_Click(object sender, EventArgs e)
    {
        Model.T_FriendLink link = new Model.T_FriendLink();
        link.FL_IsAuditing = 1;
        link.FL_Logo = this.imgUrl.Value;
        link.FL_Type = RadioButtonList1.SelectedIndex;
        link.FL_Url = this.txtAddress.Text;
        link.FL_WebName = this.txtName.Text;
        DAL.FriendLink.Add(link);
        Response.Redirect("LinkManager.aspx");
    }
}